package tcu.iot.gasmanage.entity.person;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class PersonQuery {

    //前端接收数据，接收人员管理页面实体类
    private int page;
    private int amount;
    private String username;
    private String sort;
    private String phone;
    private String region;
    private String site;
    private String pipeline;
    private String management;

    public boolean IsSelectPersonNull(PersonQuery personQuery) {
        return !personQuery.getUsername().equals("") || !personQuery.getManagement().equals("") || !personQuery.getSite().equals("")
                || !personQuery.getRegion().equals("") || !personQuery.getPipeline().equals("");
    }
}
